public class c4_7{
    public static void main (String[] args){
        int sum = 0;
        int i = 1;
        do  {
            sum += i;
            i++;
        } while (i<=100);
        System.out.println("1到100(包括100)的数的总和为: " + sum);
    }
}